package com.caiying.dota.domain;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
10-17 20:21:45.651: I/System.out(3085): init_str=初始力量
10-17 20:21:45.651: I/System.out(3085): init_agi=初始敏捷
10-17 20:21:45.651: I/System.out(3085): init_int=初始智力
10-17 20:21:45.651: I/System.out(3085): lv_str=力量成长
10-17 20:21:45.651: I/System.out(3085): lv_agi=敏捷成长
10-17 20:21:45.651: I/System.out(3085): lv_int=智力成长
10-17 20:21:45.651: I/System.out(3085): init_hp=初始血量
10-17 20:21:45.651: I/System.out(3085): init_mp=初始魔法
10-17 20:21:45.651: I/System.out(3085): init_armor=初始护甲
10-17 20:21:45.651: I/System.out(3085): init_min_dmg=初始最小攻击力
10-17 20:21:45.651: I/System.out(3085): init_max_dmg=初始最大攻击力
10-17 20:21:45.651: I/System.out(3085): lv_dmg=攻击成长
10-17 20:21:45.651: I/System.out(3085): Speed = 移动速度
10-17 20:21:45.651: I/System.out(3085): Range = 射程
10-17 20:21:45.651: I/System.out(3085): level=初始等级
 * @author caiying Oct 17, 2012 8:52:54 PM
 */
@Entity
@Table(name="tbl_dota_hero")
public class DotaHero {
	private int id;
	private String level;
	private String name_cn;
	private String name_en;
	private String nickname;
	private String avatar;
	private String intro;
	private String move_speed;
	private String attack_range;
	private String init_str;
	private String init_agi;
	private String init_int;
	private String init_per;
	private String init_hp;
	private String init_mp;
	private String init_armor;
	private String init_min_dmg;
	private String init_max_dmg;
	private String grow_str;
	private String grow_agi;
	private String grow_int;
	private String grow_hp;
	private String grow_mp;
	private String grow_armor;
	private String grow_dmg;
	private String index_dps;
	private String index_push;
	private String index_gank;
	private String index_ass;
	private String index_def;
	
	public DotaHero() {
		super();
	}
	
	public DotaHero(String level, String name_cn, String name_en,
			String nickname, String avatar, String intro, String move_speed,
			String attack_range, String init_str, String init_agi,
			String init_int, String init_per, String init_hp, String init_mp,
			String init_armor, String init_min_dmg, String init_max_dmg,
			String grow_str, String grow_agi, String grow_int, String grow_hp,
			String grow_mp, String grow_armor, String grow_dmg,
			String index_dps, String index_push, String index_gank,
			String index_ass, String index_def, Set<DotaSkill> skills) {
		super();
		this.level = level;
		this.name_cn = name_cn;
		this.name_en = name_en;
		this.nickname = nickname;
		this.avatar = avatar;
		this.intro = intro;
		this.move_speed = move_speed;
		this.attack_range = attack_range;
		this.init_str = init_str;
		this.init_agi = init_agi;
		this.init_int = init_int;
		this.init_per = init_per;
		this.init_hp = init_hp;
		this.init_mp = init_mp;
		this.init_armor = init_armor;
		this.init_min_dmg = init_min_dmg;
		this.init_max_dmg = init_max_dmg;
		this.grow_str = grow_str;
		this.grow_agi = grow_agi;
		this.grow_int = grow_int;
		this.grow_hp = grow_hp;
		this.grow_mp = grow_mp;
		this.grow_armor = grow_armor;
		this.grow_dmg = grow_dmg;
		this.index_dps = index_dps;
		this.index_push = index_push;
		this.index_gank = index_gank;
		this.index_ass = index_ass;
		this.index_def = index_def;
		this.skills = skills;
	}
	private Set<DotaSkill> skills = new HashSet<DotaSkill>();
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getLevel() {
		return level;
	}
	
	public String getMove_speed() {
		return move_speed;
	}
	public void setMove_speed(String move_speed) {
		this.move_speed = move_speed;
	}
	public String getAttack_range() {
		return attack_range;
	}
	public void setAttack_range(String attack_range) {
		this.attack_range = attack_range;
	}
	public void setLevel(String level) {
		this.level = level;
	}
	public String getName_cn() {
		return name_cn;
	}
	public void setName_cn(String name_cn) {
		this.name_cn = name_cn;
	}
	public String getName_en() {
		return name_en;
	}
	public void setName_en(String name_en) {
		this.name_en = name_en;
	}
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	public String getAvatar() {
		return avatar;
	}
	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}
	@Column(length=10000)
	public String getIntro() {
		return intro;
	}
	public void setIntro(String intro) {
		this.intro = intro;
	}
	public String getInit_str() {
		return init_str;
	}
	public void setInit_str(String init_str) {
		this.init_str = init_str;
	}
	public String getInit_agi() {
		return init_agi;
	}
	public void setInit_agi(String init_agi) {
		this.init_agi = init_agi;
	}
	public String getInit_int() {
		return init_int;
	}
	public void setInit_int(String init_int) {
		this.init_int = init_int;
	}
	public String getInit_per() {
		return init_per;
	}
	public void setInit_per(String init_per) {
		this.init_per = init_per;
	}
	public String getInit_hp() {
		return init_hp;
	}
	public void setInit_hp(String init_hp) {
		this.init_hp = init_hp;
	}
	public String getInit_mp() {
		return init_mp;
	}
	public void setInit_mp(String init_mp) {
		this.init_mp = init_mp;
	}
	public String getInit_armor() {
		return init_armor;
	}
	public void setInit_armor(String init_armor) {
		this.init_armor = init_armor;
	}
	public String getInit_min_dmg() {
		return init_min_dmg;
	}
	public void setInit_min_dmg(String init_min_dmg) {
		this.init_min_dmg = init_min_dmg;
	}
	public String getInit_max_dmg() {
		return init_max_dmg;
	}
	public void setInit_max_dmg(String init_max_dmg) {
		this.init_max_dmg = init_max_dmg;
	}
	public String getGrow_str() {
		return grow_str;
	}
	public void setGrow_str(String grow_str) {
		this.grow_str = grow_str;
	}
	public String getGrow_agi() {
		return grow_agi;
	}
	public void setGrow_agi(String grow_agi) {
		this.grow_agi = grow_agi;
	}
	public String getGrow_int() {
		return grow_int;
	}
	public void setGrow_int(String grow_int) {
		this.grow_int = grow_int;
	}
	public String getGrow_hp() {
		return grow_hp;
	}
	public void setGrow_hp(String grow_hp) {
		this.grow_hp = grow_hp;
	}
	public String getGrow_mp() {
		return grow_mp;
	}
	public void setGrow_mp(String grow_mp) {
		this.grow_mp = grow_mp;
	}
	public String getGrow_armor() {
		return grow_armor;
	}
	public void setGrow_armor(String grow_armor) {
		this.grow_armor = grow_armor;
	}
	public String getGrow_dmg() {
		return grow_dmg;
	}
	public void setGrow_dmg(String grow_dmg) {
		this.grow_dmg = grow_dmg;
	}
	public String getIndex_dps() {
		return index_dps;
	}
	public void setIndex_dps(String index_dps) {
		this.index_dps = index_dps;
	}
	public String getIndex_push() {
		return index_push;
	}
	public void setIndex_push(String index_push) {
		this.index_push = index_push;
	}
	public String getIndex_gank() {
		return index_gank;
	}
	public void setIndex_gank(String index_gank) {
		this.index_gank = index_gank;
	}
	public String getIndex_ass() {
		return index_ass;
	}
	public void setIndex_ass(String index_ass) {
		this.index_ass = index_ass;
	}
	public String getIndex_def() {
		return index_def;
	}
	public void setIndex_def(String index_def) {
		this.index_def = index_def;
	}
	@OneToMany(mappedBy="hero", cascade={CascadeType.ALL})
	public Set<DotaSkill> getSkills() {
		return skills;
	}
	public void setSkills(Set<DotaSkill> skills) {
		this.skills = skills;
	}
	
}
